package com.galgram.project.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.galgram.project.entity.Chapter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.galgram.project.mapper.FxCourseChapterMapper;
import com.galgram.project.domain.FxCourseChapter;
import com.galgram.project.service.IFxCourseChapterService;

/**
 * 课程章节Service业务层处理
 *
 * @author galgram
 * @date 2024-11-20
 */
@Service
public class FxCourseChapterServiceImpl extends ServiceImpl<FxCourseChapterMapper, FxCourseChapter> implements IFxCourseChapterService {

    @Autowired
    private FxCourseChapterMapper chapterMapper;

    @Override
    public List<FxCourseChapter> selectFxCourseChapterList(FxCourseChapter fxCourseChapter) {
        return baseMapper.selectFxCourseChapterList(fxCourseChapter);
    }

    @Override
    public List<Chapter> selectChapterList(Long curriculumId) {
        return chapterMapper.selectChapterList(curriculumId);
    }

}
